package cn.sixmillions.ps.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * minio文件上传记录
 *
 * @author six
 * @since 2023-02-01
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
@TableName("tl_minio_file_his")
public class MinioFileHis implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("bucket_name")
    private String bucketName;

    @TableField("file_path")
    private String filePath;

    @TableField("file_name")
    private String fileName;

    @TableField("origin_name")
    private String originName;

    @TableField("file_size")
    private Double fileSize;

    @TableField("file_type")
    private String fileType;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_date")
    private LocalDateTime createdDate;

    @TableField("last_modified_by")
    private String lastModifiedBy;

    @TableField("last_modified_date")
    private LocalDateTime lastModifiedDate;

}

